﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace WqLunTan.Models.DataBase
{
    /// <summary>
    /// 数据库实体类, 基类
    /// </summary>
    public class BaseUpdateEntity
    {
        /// <summary>
        /// Guid主键
        /// </summary>
        [Key]
        public Guid id { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTimeOffset create_time { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTimeOffset last_update { get; set; }
    }
}
